# $Id: PKGBUILD 64924 2012-02-18 20:59:20Z jelle $
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: Giovanni Scafora <linuxmania@gmail.com>
# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=gtk-recordmydesktop
pkgver=0.3.8
pkgrel=6
pkgdesc="A pygtk frontend for recordmydesktop"
arch=('any')
url="http://recordmydesktop.sourceforge.net"
license=('GPL')
depends=('pygtk>=2.10' 'recordmydesktop>=0.3.8.1' 'xorg-utils' 'python2')
#makedepends=('pkgconfig')
source=(http://downloads.sourceforge.net/sourceforge/recordmydesktop/${pkgname}-${pkgver}.tar.gz)
md5sums=('2637b9be9801e0b2c3b6dae8f86a8b59')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
  make
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}
  make DESTDIR=${pkgdir} install
  sed -i 's#/usr/bin/python#/usr/bin/python2#' $pkgdir/usr/bin/gtk-recordMyDesktop
}
